package com.example.jixeishi1.service.lmpi;

import com.example.jixeishi1.dao.HRSShangPindao;
import com.example.jixeishi1.entity.Dizhi;
import com.example.jixeishi1.entity.GeRen;
import com.example.jixeishi1.entity.User;
import com.example.jixeishi1.service.HRSShangPinService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
public class HRSShangPinlmpi implements HRSShangPinService {
    @Autowired
    HRSShangPindao hrsShangPindao;
    @Transactional
    @Override
    public List getList() {
        List list=hrsShangPindao.getList();
        return list;

    }

    @Override
    public List getListuser(int id) {
        List list= hrsShangPindao.getListuser(id);
        return list;
    }

    @Override
    public List getListhuanying(int id) {
        List list =hrsShangPindao.getListhuanying(id);
        return list;
    }



    @Override
    public List getLisjixeishigrxx(int id) {
        List list =hrsShangPindao.getLisjixeishigrxx(id);
        return list;
    }

    @Override
    public int getproductupdate(GeRen geRen) {
        int sy=hrsShangPindao.getproductupdate(geRen);
        return sy;
    }

    @Override
    public int xgmmtupdate(User user) {
        int xgmm=hrsShangPindao.xgmmtupdate(user);
        return xgmm;
    }

    @Override
    public int intouser(int yhid) {
        int yhm=hrsShangPindao.intouser(yhid);
        return yhm;
    }

    @Override
    public List getListci() {
        List list1=hrsShangPindao.getListci();
        return list1;
    }

    @Override
    public int intouser1(int yhid) {

        int yhm=hrsShangPindao.intouser1(yhid);
        return yhm;
    }

    @Override
    public int Dizhi(Dizhi dizhi) {
        int dz=hrsShangPindao.Dizhi(dizhi);
        return dz;
    }

    @Override
    public List dz2(int userid) {

        List  dz2=hrsShangPindao.dz2(userid);

        return dz2;
    }

    @Override
    public int deleteDizhi(int usid) {
        int  deleteDizhi  =hrsShangPindao.deleteDizhi(usid);
        return deleteDizhi;
    }


}
